﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Golf.Core" namespace="Golf.Core">
  <class name="Player" table="tb_Player" lazy="false">
    <id name="Id" unsaved-value="0">
      <column name="PlayerId"/>
      <generator class="identity" />
    </id>
    <property name="Forename" not-null="true" length="50" />
    <property name="Surname" not-null="true" length="50" />
    <property name="Gender" type="Golf.DataLayer.GenderEnumType, Golf.DataLayer">
      <column name="Gender" not-null="true" length="1" check="Gender IN ('M', 'F')" />
    </property>
    <property name="Hometown" not-null="true" length="50" />
    <many-to-one name="County" column="CountyId" class="County" not-null="true" foreign-key="FK_Player_County" />
  </class>
</hibernate-mapping>